package com.yan.work;

import com.yan.domain.Student;

public class Test3 {
    public static void main(String[] args) {
        Student student1 = new Student("yft" , 18 , 111 , "男");
        Student student2 = new Student("yft" , 19 , 111 , "男");
        student1.eat();
        student1.sleep();
        student1.student();
        boolean equals = student1.equals(student2);
        if(equals){
            System.out.println("学生相同");
        }else {
            System.out.println("学生不同");
        }

    }
}
